package net.frenopatico.citadels.view.accessors;


import java.text.MessageFormat;
import java.util.ResourceBundle;

/**
 * Proxy for the Logs Resource Bundle.
 *
 * @author eduardo.ramirez.ronco@gmail.com
 *
 */
public final class Logs {
    private static final String BUNDLE_NAME = "Logs";

    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );

    /**
     * Private constructor to avoid instantiation.
     */
    private Logs() {
        // Avoid instantiation.
    }

    /**
     * Return the localized string for the given key.
     *
     * @param key Key to lookup in the Resource Bundle.
     * @param args Arguments for the string formating.
     * @return The localized string.
     */
    public static String get( final String key, final Object... args ) {
        return new MessageFormat( RESOURCE_BUNDLE.getString( key ) ).format( args );
    }

}
